/**
 * 
 */
package org.jenkon.core.filter;

import java.util.zip.ZipEntry;

import org.jenkon.commons.lang.filter.Filter;

/**
 * @author Jens Konopka
 * 
 */
public class JarClassFilter implements Filter<ZipEntry> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1817330489780484046L;

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.jenkon.commons.filter.Filter#accept(java.lang.Object)
	 */
	@Override
	public boolean accept(final ZipEntry value) {
		final String entryName = value.getName();
		return entryName.toLowerCase().endsWith(".class");
	}
}
